# clear all
set nfacs [ gtkwave::getNumFacs ]
set signals [list]
for {set i 0} {$i < $nfacs } {incr i} {
    set facname [ gtkwave::getFacName $i ]
    lappend signals "$facname"
}
gtkwave::deleteSignalsFromList $signals

# add instance port
set ports [list tb_MACArray.clock tb_MACArray.reset tb_MACArray.io_dataIn_0 tb_MACArray.io_dataIn_1 tb_MACArray.io_dataIn_2 tb_MACArray.io_switchw_0 tb_MACArray.io_switchw_1 tb_MACArray.io_switchw_2 tb_MACArray.io_weightIn_0 tb_MACArray.io_weightIn_1 tb_MACArray.io_weightIn_2 tb_MACArray.io_weightWe tb_MACArray.io_dataOut_0 tb_MACArray.io_dataOut_1 tb_MACArray.io_dataOut_2]
gtkwave::addSignalsFromList $ports
